<template>
    <div>
        <van-field  v-model="form.name" />
        <van-button @click="add">提交</van-button>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                form:{}
            }
        },
        methods:{
            add(){
                this.$axios.post('cate',this.form).then(res=>{
                    alert('添加成功')
                })
            }
        }
    }
</script>

<style scoped>

</style>